<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="common_css :: commonHeader('字典信息管理')"></head>
<body>
<!--搜索框-->
<form method="post" id="tabfrom">
    <div style="padding:2px" class="easyui-panel" title="数据查询">
        <table class="form-table">
            <tr>
                <td align="right" width="10%">字典编码：</td>
                <td align="left"><input id="selCode" style="width:150px" class="easyui-validatebox"></td>
                <td align="right" width="10%">编码名称：</td>
                <td align="left"><input id="selName" style="width:150px" class="easyui-validatebox"></td>
                <td align="right" width="10%">字典状态：</td>
                <td align="left">
                    <input id="selStatus" style="width:150px"
                           data-options="valueField:'value',textField:'showmsg',panelHeight:'auto',prompt:'==请选择=='"
                           class="easyui-combobox"/>
                    <a class="easyui-linkbutton" iconCls='icon-search' onclick="doSearch();">查询</a>
                </td>
            </tr>
        </table>
    </div>
    <br>
</form>
<div id="toolbar">
    <shiro:hasPermission name="system:dicvalue:add">
        <a id="addValue" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add"
           onclick="addValue()">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="system:dicvalue:edit">
        <a id="editValue" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit"
           onclick="editValue()">修改</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="system:dicvalue:del">
        <a id="delValue" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel"
           onclick="delValue()">删除</a>
    </shiro:hasPermission>
</div>
<div id="dgValue"></div>
<!--字典详细页面-->
<div id="dlgValueDetail" class="easyui-dialog" style="width:400px;height:300px"
     closed="true" modal="true" maximizable="true" resizable="true" buttons="#dlg-buttonsValueDetail">
    <form id="myformValueDetail" method="post">
        <div style="padding:20px">
            <table cellpadding="2px" cellspacing="0" class="form-table">
                <input type="hidden" name="id"/>
                <tr>
                    <td>字典编码：</td>
                    <td>
                        <input class="easyui-validatebox" name="code" id="code"
                               data-options="required:true" missingMessage="请输入字典编码"/>
                    </td>
                </tr>
                <tr>
                    <td>编码名称：</td>
                    <td>
                        <input class="easyui-validatebox" name="name" id="name"
                               data-options="required:true" missingMessage="请输入字典编码"/>
                    </td>
                </tr>
                <tr>
                    <td>字典值：</td>
                    <td>
                        <input class="easyui-validatebox" name="value" id="value"
                               data-options="required:true" missingMessage="请输入字典值"
                               validType="dicValueValidate['dicValue','code','value']"/>
                        <input type="hidden" id="dicValue" name="dicValue"/><!--修改前的字典值-->
                    </td>
                </tr>
                <tr>
                    <td>顺序值：</td>
                    <td>
                        <input class="easyui-validatebox"
                               data-options="required:true"
                               missingMessage="请输入字段位数,必须大于0正整数！" validType="integerZero"
                               name="sequence"/>
                    </td>
                </tr>
                <tr>
                    <td>字典类别：</td>
                    <td>
                        <input class="easyui-validatebox" name="ftype" id="ftype"
                               data-options="required:true" missingMessage="请输入字典类别"/>
                    </td>
                </tr>
                <tr>
                    <td>显示信息：</td>
                    <td>
                        <input class="easyui-validatebox"
                               data-options="required:true" missingMessage="请输入显示信息"
                               name="showmsg"/>
                    </td>
                </tr>
                <tr>
                    <td>状态：</td>
                    <td>
                        <input id="status" name="status" editable="false"
                               class="easyui-combobox" data-options="prompt:'==请选择==',panelHeight:'auto', valueField: 'label', textField: 'value',
                                    data: [{ label: '1',  value: '启用' },{ label: '2', value: '不启用'}]"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>


<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/system/dicvalue.js}"></script>
</body>


</html>
